Layout DXL - Recreate Main Colum help

I am using the following code from SmartDXL.com for recreating the Main Column. The code works but when I try to do a column filter on the layout dxl column, I get the following error:
DXL halted with run-time error.
-R-E- DXL: <Line:18> null dialog element (DBE) parameter was passed into argument position 1
-I- DXL: execution halted

Here is the code snippet.
// Recreate Main Column in Layout DXL

/*
Layout DXL to display the Object Heading and Text
in the same format as the main column.

Tony Goodman
*/

if (obj."Object Heading" "" != "")
{
font(getCanvas, level(obj), HeadingsFont)
displayRich(number(obj) " " obj."Object Heading" "")
}

if (obj."Object Text" "" != "")
{
font(getCanvas, level(obj), TextFont)
displayRich(richTextWithOle(obj."Object Text"))
}

Can anyone shed some light as to what the issue is? Thanks!!
DOORS_USER - Fri Jun 25 09:46:43 EDT 2010

Re: Layout DXL - Recreate Main Colum help
Mathias Mamsch - Fri Jun 25 14:26:44 EDT 2010

The problem seems to be that the getCanvas function returns null if the object is not currently displayed. So you could try:
 

...
if (!null getCanvas) font(getCanvas, level(obj), HeadingsFont)
...
if (!null getCanvas) font(getCanvas, level(obj), TextFont)
...

 


that could resolve the issue. Regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 

Re: Layout DXL - Recreate Main Colum help
DOORS_USER - Tue Jun 29 17:45:54 EDT 2010

That was the problem. Thanks a ton!